Skip to content

Instantly share code, notes, and snippets.

@rxaviers
rxaviers / gist:7360908
Last active May 19, 2024 10:24
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@hspaans
hspaans / git.md
Last active May 19, 2024 10:16
Git cheatsheet

Git Cheatsheet

Set per project user configuration

git config --local user.name "Jack Doe"
git config --local user.email "jack.doe@example.org"
git config --local commit.gpgsign "false"
@zawzaww
zawzaww / twrp-recovery-flags.mk
Last active May 19, 2024 10:16
Makefile Flags for Compiling TWRP
# USEFUL TWRP RECOVERY FLAGS
# by ZawZaw @XDA-Developers
# Thanks to : @xda-developers for helps
# Add EXT4 support
TARGET_USERIMAGES_USE_EXT4 := true
# Disable/enable SELinux. Only suggested when you want to enable SELinux support
TWHAVE_SELINUX := true
@conatus
conatus / against-community-book-proposal.md
Last active May 19, 2024 10:14
Against Community: Book Proposal

Against Community

Against Community attempts to the explore the political rhetoric of "community" with reference to the politics of the United Kingdom in the era of neoliberalism. Specifically, what is the material and ideological function of discourses around community? How have these shifted over time in the politics of the mainstream of the United Kingdom - from the birth of neoliberal politics in the late 1970s, to the Blairite highpoint of the late 1990s to the Serco-sponsored austerity jamboree of Cameron's "big society"? Why the attraction of community so strong that the likely incoming Labour government feel the need to endorse it in the concept of "one nation"?

Against Community begins by exploring the ideas of community within the early German neoliberal theorists, showing community to be a central concern of the "shock doctrine" reconstruction of post-World War II Germany. Even as early as the later 1940s and 1950s neoliberal reform was accompanied by rhetoric of "community". This idea

@hiepnd
hiepnd / Outline.shader
Last active May 19, 2024 10:11
Unity Outline shader for transparent object
Shader "Screw/Alpha Outline" {
Properties {
_Color ("Main Color", Color) = (.5,.5,.5,1)
_OutlineColor ("Outline Color", Color) = (0,0,0,1)
_Outline ("Outline width", Range (0.0, 0.15)) = .005
_OutlineOffset ("Outline Offset", Vector) = (0, 0, 0)
_MainTex ("Base (RGB)", 2D) = "white" { }
_Alpha ("Alpha", Float) = 1
}
@devomman
devomman / office-activation.md
Created May 30, 2023 11:01
Office Activation Command by Omman

Office 2021

Method 1: Using my command line

Step 1.1: Open cmd program with administrator rights.

  • First, you need to open cmd in the admin mode, then run all commands below one by one.

Step 1.2: Get into the Office directory in cmd.

  • For x86 and x64
cd /d %ProgramFiles(x86)%\Microsoft Office\Office16
cd /d %ProgramFiles%\Microsoft Office\Office16
@vivekhaldar
vivekhaldar / cut_silence.py
Last active May 19, 2024 10:07
Python script to cut out silent parts from a video. Uses moviepy.
#!/usr/bin/env python
#
# Based on a script by Donald Feury
# https://gitlab.com/dak425/scripts/-/blob/master/trim_silenceV2
# https://youtu.be/ak52RXKfDw8
import math
import sys
import subprocess
import os
@jmswrnr
jmswrnr / ESP32_ROM_LABELS.txt
Created January 27, 2024 13:41
Ghidra ESP32 ROM function labels
sp_rom_md5_init 0x4005da7c l
sp_rom_md5_update 0x4005da9c l
sp_rom_md5_final 0x4005db1c l
ts_secure_boot_verify_signature 0x4006543c l
ts_secure_boot_verify_boot_bootloader 0x400655ec l
ts_use_secure_boot_v2 0x4000f8d4 l
ts_rsa_pss_verify 0x40065310 l
ts_mgf1_sha256 0x400651a8 l
ts_emsa_pss_verify 0x4006520c l
Add2SelfBigHex256 0x40015b7c l
@mattstobbs
mattstobbs / month-picker.tsx
Created July 26, 2023 22:15
A simple month picker that matches the style of shadcn/ui
import {
add,
eachMonthOfInterval,
endOfYear,
format,
isEqual,
isFuture,
parse,
startOfMonth,
startOfToday,
@ctlllll
ctlllll / longest_chinese_tokens_gpt4o.py
Created May 13, 2024 19:53
Longest Chinese tokens in gpt4o
import tiktoken
import langdetect
T = tiktoken.get_encoding("o200k_base")
length_dict = {}
for i in range(T.n_vocab):
try:
length_dict[i] = len(T.decode([i]))
except: